package com.estate.common.core.domain.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

// API响应包装类
@Data
@EqualsAndHashCode(callSuper = false)
@JsonIgnoreProperties(ignoreUnknown = true)
public class ApiResponse<T> {
    private Boolean success;
    private T data;
    private Pagination pagination;
    private List<String> messages;

    @JsonProperty("status_code")
    private Integer statusCode;

}

